#pragma once

#include <iostream>
#include <string>
#include <vector>
#include <functional>

using task_t = std::function<void()>;

void Dowload()
{
    std::cout << "下载任务" << std::endl;
}
void Mysql()
{
    std::cout << "数据库任务" << std::endl;
}
void Syns()
{
    std::cout << "刷新任务" << std::endl;
}
void Day()
{
    std::cout << "日志任务" << std::endl;
}

std::vector<task_t> task;

class Init
{
public:
    Init()
    {
        task.push_back(Dowload);
        task.push_back(Mysql);
        task.push_back(Syns);
        task.push_back(Day);
    }
};

Init ginit;